package com.wyh.edu.server;

import com.wyh.edu.server.fallback.CodeFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wuyuhan
 * @date 2021/2/4 21:32
 */
@FeignClient(value = "server-user", path = "/api/user", fallback = CodeFeignServiceFallBack.class)
public interface CodeFeignService {
    @GetMapping("/info/{token}")
    String info(@PathVariable("token") String token) ;
}
